import {Component} from "react";
import  PropTypes from 'prop-types'
class Button extends Component{
    render(){
        const {onClick,className ,children} = this.props
        // console.log(className)
        return (
            <button onClick={onClick} className={className}>{children}</button>
        )
    }

}
Button.propTypes = {
   onClick: PropTypes.func.isRequired,
   className: PropTypes.string,
   children:PropTypes.node.isRequired
}
Button.defaultProps = {
    className: ''
}
export  default  Button